package com.enjoyor.soa.traffic.util.enums.signal;

/**
 * 
 * @ClassName: LaneDir
 * @Description: 进口车道所在的方向
 * @author: Administrator
 * @date: 2019年7月1日 下午7:38:44
 */
public enum LaneMovement {
	//11	直行
	STRAIGHT("11","直行"),
	//12	左转
	LEFT("12","左转"),
	//13	右转
	RIGHT("13","右转"),
	//21	直左混行
	STRAIGHT_LEFT("21","直左混行"),
	//22	直右混行
	STRAIGHT_RIGHT("22","直右混行"),
	//23	左右混行
	LEFT_RIGHT("23","左右混行"),
	//24	直左右混行
	STRAIGHT_LEFT_RIGHT("24","直左右混行"),
	//31	掉头
	TURN_AROUND("31","掉头"),
	//99	其他
	OTHER("99","其他");
	
	private final String key;

	private final String value;

	private LaneMovement(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public String getKey() {
		return this.key;
	}

	public String getValue() {
		return this.value;
	}
	public static String getValue(String key) {  
		LaneMovement[] enums = values();  
        for (LaneMovement e : enums) {  
            if (e.getKey().equals(key)) {  
                return e.getValue();  
            }  
        }  
        return null;  
    } 
}
